package com.dopper.ws.example;


import com.dopper.ws.WebsocketServer;
import com.dopper.ws.WebsocketServerConfig;

/**
 * @author jincarry
 */
public class WsDemoApplication {

    public static void main(String[] args) throws Exception {
        WebsocketServerConfig config = new WebsocketServerConfig();

        WebsocketServer server = new WebsocketServer(config);
        server.registerWebsocket(new HomeWebsocket());

        server.run("0.0.0.0", 9003);
    }

}
